import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import Home from '../view/Home.vue'
import About from '../view/About.vue'
const routes = [
    {
        path: '/home',
        component: Home
    },
    {
        path: '/about',
        component: About
    },
    {
        path: '/',
        redirect: '/home'
    }
]

const router = new VueRouter({
    routes,
    mode: 'history'
})

export default router